package cn.wolfcode.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

@Getter @Setter @ToString
public class Employee {
    private Long id;

    private String name;

    private String password;

    private String email;

    private Integer age;

    private Boolean admin;
    //封裝部門id 名稱  縮寫
    private Department dept;
    //查询单个员工时把员工对应的所有角色查出
    private List<Role> roles = new ArrayList<>();

}